<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8"/>
  <xsl:param name="templatename"/>
  <xsl:template match="/">
    <xsl:choose>
      <xsl:when test="$templatename='QuickMenu'">
        <xsl:for-each select="rows/row">
          <li class="qitem" id="item_{ID}" value="{ID}"><a target="iWindow">
            <xsl:if test="F_Url!='' and F_Flag=1">
              <xsl:attribute name="href"><xsl:value-of select="F_Url"/></xsl:attribute>
              <xsl:attribute name="onclick">myTitle('<xsl:value-of select="F_Text"/>')</xsl:attribute>
            </xsl:if>
            <xsl:attribute name="class">
            <xsl:if test="F_Flag=0 or F_Url=''">
              disabled
            </xsl:if>
            <xsl:if test="F_Ico!=''">
              ico
            </xsl:if>
            </xsl:attribute>
            <xsl:if test="F_Ico!=''">
              <xsl:attribute name="style">background-image:url(<xsl:value-of select="F_Ico"/>);</xsl:attribute>
            </xsl:if>
            <xsl:value-of select="F_Text"/></a></li>
        </xsl:for-each>
        <li id="quickmenubutton"><span id="AddQuickMenu"><xsl:value-of select="page:xLoadList('QuickMenuSelect')" disable-output-escaping="yes"/> </span></li>
		<li><a href="quickMenu.html" title="管理快捷菜单" target="iWindow"><img src="/Icons/bbPgsize.gif" width="18" height="18" border="0" /></a></li>
      </xsl:when>
      <xsl:when test="$templatename='QuickMenuSelect'">
       
      <xsl:if test="count(rows/row[F_Target='iWindow'])!=0">
        <select id="menuid">
          <xsl:for-each select="rows/row[F_Target='iWindow']">
            <option value="{ID}"><xsl:value-of select="F_Text"/></option>
          </xsl:for-each>
        </select>
        <input type="image" src="/Icons/yplus.gif">
        <xsl:attribute name="onclick">if(TabManage.prototype.doCmd('QuickMenuInsert',{title:'新增快捷菜单',query:'menuid='+$('menuid').value,confirm:true})==1){TabManage.prototype.loadContent('QuickMenu','QuickMenu',null,false);}</xsl:attribute>
        </input >
        </xsl:if>
      </xsl:when>
     
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>